import 'package:flutter/material.dart';
import 'package:share_fit/app/controllers/device/remind/picker/style/picker_style.dart';

/// 默认样式
class DefaultPickerStyle extends PickerStyle {
  DefaultPickerStyle({bool haveRadius = false, String? title}) {
    if (haveRadius) {
      this.headDecoration = BoxDecoration(
          color: Colors.white,
          borderRadius: const BorderRadius.only(topLeft: Radius.circular(10), topRight: Radius.circular(10)));
    }
    if (title != null && title != '') {
      this.title = Center(child: Text(title, style: TextStyle(color: Colors.grey, fontSize: 14)));
    }
  }

}

